package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.characters.player.Player;
import com.ham.mud.classes.MudClass;
import com.ham.mud.races.Race;

/**
 * Created by hlucas on Jun 29, 2011 at 5:07:46 PM
 */
public class ScoreCommand extends PlayerCommand {
    @Override
    public void execute(ServerConnection connection, String[] params) {
        Player player = connection.getPlayer();
        MudClass mudClass = player.getMudClass();
        Race race = player.getRace();
        int level = player.getLevel();
        connection.printStart("You are a level " + level + " " + race.getName() + " " + mudClass.getName() + ".");
        connection.println("You have " + player.getGold() + " gold coins.");
        connection.println("You have " + player.getQuestPoints() + " quest points.");
        player.getStats().display(connection);
        connection.printEnd();
    }

    @Override
    protected String getCommandName() {
        return "score";
    }
}
